package kuaidi.model;

import kuaidi.model.impl.JiKuaiDiImpl;
import kuaidi.model.impl.KuaidiImpl;
import kuaidi.model.models.IJiKuaiDiModel;
import kuaidi.model.models.IKuaidiModel;

/**
 * Created by John on 2016/11/1.
 */

public class ModelFactory {
    public static IKuaidiModel iKuaidiModel;

    public static IKuaidiModel getiKuaidiModel() {
        if (iKuaidiModel == null) {
            iKuaidiModel = new KuaidiImpl();
        }
        return iKuaidiModel;
    }

    public static IJiKuaiDiModel iJiKuaiDiModel;

    public static IJiKuaiDiModel getiJiKuaiDiModel() {
        if (iJiKuaiDiModel == null) {
            iJiKuaiDiModel = new JiKuaiDiImpl();
        }
        return iJiKuaiDiModel;
    }
}
